package study.util;

/**
 * @author sunxuejian
 * @version 1.0
 * @date 2020/3/12 19:05
 */
public class RestException extends RuntimeException {

    public RestException(String errorCode) {
        super(errorCode);
    }

    public RestException(String errorCode, String errorMsg) {
        super(errorCode + ": " + errorMsg);
    }

    public RestException(String errorCode, Throwable cause) {
        super(errorCode, cause);
    }

    public RestException(String errorCode, String errorMsg, Throwable cause) {
        super(errorCode + ": " + errorMsg, cause);
    }
}
